import {defineStore} from 'pinia';
import {reactive} from 'vue';
import {StaffApi, UserApi} from '@/api';

export default defineStore("staff",() => {
    // const staffCategory = ref<Array<Vm.Category>>([]);
    //     async function initCategory(){
    //         staffCategory.value = await UserApi.getCategory();
    //     }
    let isInit: boolean = false;
    const allStaffs = reactive<Array<Vm.Staff>>([]);

    const init = async () => {
        if(isInit) return;
        // allStaffs.push(...await StaffApi.getList());
        isInit = true;
    }
    return {}
})